#ifndef __INTR_H__
#define __INTR_H__

typedef void (*irq_handler_f) (int irq, int count);

int  intr_irq_test_save(void);
int  intr_irq_save(void);
void intr_irq_restore_to(int l);
void intr_irq_restore(void);
void intr_irq_restore_schedule(void);
void intr_irq_process(void);

int  intr_init(void);
void intr_irq_handler_set(int irq, irq_handler_f handler, int auto_eoi);

#endif
